package cn.hls.exception;

import cn.hlsconstant.DataAssessEnum;

/**
 * @fileName: BussinessException.java
 * @package: cn.christ.exception
 * @Description: 统一异常信息
 * @author: yinghui.zhang
 * @email: uuhui@163.com
 * @date: 2015-7-6
 */
public class BussinessException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private DataAssessEnum code;// 错误代码
	private String message;// 错误原因

	public BussinessException() {

	}
	
	public BussinessException(String message) {
		this.message = message;
	}

	public BussinessException(DataAssessEnum code, String message) {
		this.code = code;
		this.message = message;
	}

	public DataAssessEnum getCode() {
		return code;
	}

	public void setCode(DataAssessEnum code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
